package com.mzj.saas.jobs.lock.controller;

import com.mzj.saas.jobs.bill.service.BillService;
import com.mzj.saas.jobs.bill.service.PropertyBillService;
import com.mzj.saas.jobs.lifePay.service.LifePayService;
import com.mzj.saas.jobs.lock.service.LockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/lock")
public class LockController {
    @Autowired
    private LockService lockService;

    @Autowired
    private BillService billService;
    @Autowired
    private PropertyBillService propertyBillService;
    @Autowired
    private LifePayService lifePayService;

    @GetMapping("/lockUnOpenTime")
    @ResponseBody
    public void lockUnOpenTime() throws Exception {
        lifePayService.work();
    }


}
